<?php 
defined('_JEXEC') or die('Restricted access');
AdminUIHelper::startAdminArea ();
$canbo=$this->canbo;
?>
<script type="text/javascript">
function kaka()
{
	alert("anh yeu em");
}
function limiter(){
	// check ten blank
	var name= document.adminForm.username.value;
	if(name=="") 
	{
		document.getElementById('loiten').innerHTML="(!)  Not blank.!";
	}
	else  
	{
		if(name.length<8) document.getElementById('loiten').innerHTML="Lengt >= 8 ";
		else  document.getElementById('loiten').innerHTML="";
	}
	// check pass2 blank
	var pass= document.adminForm.password2.value;
	if(pass=="") 
	{
		document.getElementById('loipassword2').innerHTML="(!)  Not blank.!";
	}
	else  
	{
		if(pass.length<8) document.getElementById('loipassword2').innerHTML="Lengt >= 8 ";
		else  document.getElementById('loipassword2').innerHTML="";
	}
	// check pass3 blank
	var pass3= document.adminForm.password3.value;
	if(pass3!=pass) document.getElementById('loipassword3').innerHTML="(!)  Not match.!";
	else  document.getElementById('loipassword3').innerHTML="";
			}
</script>
<form name="adminForm" enctype="multipart/form-data" method="post"  onmousemove="limiter()">
	<input type='hidden' name='task' />
	<input type='hidden' name='hinhanh' value='<?php echo $iamgeurl; ?>' />
	<input type='hidden' name='idcanbo' value='<?php echo $this->idcanbo; ?>' />
	<input type='hidden' name='idqlc' value='<?php echo $canbo->qlc_id; ?>' />
	<fieldset>
		<legend>Chi tiet tai khoan </legend>
		<table class="admintable" style="width:50%; float:left;" >
			<tr>
				<td class="key">Username</td>
				<td>
				<input  onkeyup="limiter()" style="width:250px;" type="text" name="username" value="<?php echo $this->username;  ?>" />
				<b style="color:red;text-align:center;" id="loiten"  ></b>
				</td>
			</tr>

			<tr>
				<td class="key">New password</td>
				<td>
				<input  onkeyup="limiter()" style="width:250px;" type="text" name="password2" value="" />
				<b style="color:red;text-align:center;" id="loipassword2"  ></b>
				</td>
			</tr>
			<tr>
				<td class="key">Re new password</td>
				<td>
				<input  onkeyup="limiter()" style="width:250px;" type="text" name="password3" value="" />
				<b style="color:red;text-align:center;" id="loipassword3"  ></b>
				</td>
			</tr>
		</table>
	</fieldset>
</form>